package com.tree.shopify;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(path = "api/shopify")
@Slf4j
public class ShopifyController {
    @PostMapping("/cart/create")
    public String CartCreation(
            @RequestHeader HttpHeaders headers,
            @RequestBody String body) {
        log.debug(body);
        log.debug(JSON.toJSONString(headers));
        return body;
    }
}
